﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LandscapeFramework.UserControls
{
    public partial class TestUserControl : System.Web.UI.UserControl
    {
        #region Controls declaration
        protected global::System.Web.UI.WebControls.Button TestButton;
        protected global::System.Web.UI.WebControls.Label TestParam1;
        protected global::System.Web.UI.WebControls.Label TestParam2;
        protected global::System.Web.UI.WebControls.Label TestParam3;
        #endregion

        #region Configurable properties declaration
        public string param1 { set; get; }
        public string param2 { set; get; }
        public int param3 { set; get; }
        #endregion

        protected override void OnInit(EventArgs e) {
            base.OnInit(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            TestParam1.Text = param1;
            TestParam2.Text = param2;
            TestParam3.Text = param3.ToString();
        }

        protected void TestButton_Click(object sender, EventArgs e) {
            Response.Write("TestButton has been clicked");
        }
    }
}